<?php echo form_open('staffprofile/createstaffcontract/'.$staffId,array('class'=>'form-horizontal','id'=>'frm'));?>
<fieldset>
    <legend><h4><?php echo $title;?></h4></legend>
    <div class="control-group">
	    <label class="control-label">Start Contract *</label>
	    <div class="controls">
	      <input type="text" name="StartContract" placeholder="Start Contract" class="validate[required] datepicker" />
	    </div>
  	</div>
     <div class="control-group">
	    <label class="control-label">Contract Type</label>
	    <div class="controls">
	      <?php echo form_dropdown('ContractTypeID', $contracttypes, '','class="contract-type" id="contract-type"'); ?>
	    </div>
  	</div>
    <div class="control-group control-end-contract">
	    <label class="control-label">End Contract</label>
	    <div class="controls">
	      <input type="text" name="EndContract" placeholder="End Contract" class="datepicker" />
	    </div>
  	</div>
  	 <div class="control-group">
	    <label class="control-label">Work Type</label>
	    <div class="controls">
	      <?php echo form_dropdown('WorkTypeID', $worktypes); ?>
	    </div>
  	</div>
  	<div class="control-group">
	    <label class="control-label">Position</label>
	    <div class="controls">
	      <?php echo form_dropdown('PositionID', $positions); ?>
	    </div>
  	</div>
  	<div class="control-group">
	    <label class="control-label">Team</label>
	    <div class="controls">
	      <?php echo form_dropdown('TeamID', $teams); ?>
	    </div>
  	</div>
  	<div class="control-group">
	    <label class="control-label">Salary *</label>
	    <div class="controls">
	      <input type="text" name="Salary" placeholder="Salary" class="validate[required]" />
	    </div>
  	</div>
  	<div class="control-group">
	    <label class="control-label">PhoneAllowance</label>
	    <div class="controls">
	      <input type="text" name="PhoneAllowance" placeholder="Phone Allowance" />
	    </div>
  	</div>
  	<div class="control-group">
	    <label class="control-label">Fuel Allowance</label>
	    <div class="controls">
	      <input type="text" name="FuelAllowance" placeholder="Fuel Allowance" />
	    </div>
  	</div>
  	<div class="control-group">
	    <label class="control-label">InsuranceStart</label>
	    <div class="controls">
	      <input type="text" name="InsuranceStart" placeholder="Insurance Start" class="datepicker" />
	    </div>
  	</div>
  	<div class="control-group">
	    <label class="control-label">Salary Increase</label>
	    <div class="controls control-sal-increase">
	      <input type="text" name="IncreasedDate[]" placeholder="Salary Increase" class="datepicker" />
          &nbsp;&nbsp;<span>Remark</span>&nbsp;<input type="text" name="SalaryIncreaseComment[]" placeholder="Remark" />&nbsp;&nbsp;<a class="add-sal-increase" href="#">Add</a>
	    </div>
  	</div>
	<div class="control-group">
        <label class="control-label">Yearly Appraisal</label>
        <div class="controls control-appraisal">
          <input type="text" name="AppraisalDate[]" placeholder="Yearly Appraisal" class="datepicker" />
          &nbsp;&nbsp;<span>Remark</span>&nbsp;<input type="text" name="AppraisalComment[]" placeholder="Remark" />&nbsp;&nbsp;<a class="add-appraisal" href="#">Add</a>
	    </div>
  	</div>
   	<div class="control-group">
	    <label class="control-label">Amendment</label>
	    <div class="controls control-amendment">
	      <input type="text" name="AmendmentDate[]" placeholder="Amendment" class="datepicker" />
          &nbsp;&nbsp;<span>Remark</span>&nbsp;<input type="text" name="AmendmentComment[]" placeholder="Remark" />&nbsp;&nbsp;<a class="add-amendment" href="#">Add</a>
	    </div>
  	</div>
  	<div class="control-group">
	    <label class="control-label">Remark</label>
	    <div class="controls">
	       <textarea name="Remark" rows="3"></textarea>
	    </div>
	 </div>
  	<div class="control-group">
	    <div class="controls">
	      <label class="checkbox">
	        <input name="SCActive" type="checkbox" checked="checked" /> Active
	      </label>
	    </div>
  	</div>
    <?php echo $form; ?>
 </fieldset> 

<?php echo form_close();?>